package com.zpark.mapper;

import com.zpark.entity.Books;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @PackageName: com.zpark.mapper
 * @ClassName: IBooksMapper
 * @Description:
 * @author: RZS
 * @date: 2023/5/8  15:41
 */
public interface IBooksMapper {
    // 添加books数据
    Integer insertBooks(Books books);

    // 根据id删除books
    Integer deleteBooksById(Integer id);

    // 修改books
    Integer updateBooksById(Books books);

    // 查询所有books
    List<Books> selectAll();

    // 根据books名字模糊查询books
    List<Books> selectBooksByLikeName(String bName);

    // 根据id查询数据
    Books selectById(Integer id);
}
